//
//  YRVerifyButton.swift
//  NightNews
//
//  Created by 薛永伟 on 2019/8/26.
//  Copyright © 2019 XueYongWei. All rights reserved.
//

import UIKit

class YRVerifyButton: UIButton {

    override init(frame: CGRect) {
        
        super.init(frame: frame)
        customSubview()
    }
    
    required init?(coder aDecoder: NSCoder) {
        
        super.init(coder: aDecoder)
        customSubview()
    }
    

    func customSubview(){
        
        setTitleColor(UIColor.white, for: .normal)
        
        layer.cornerRadius = 4
        clipsToBounds = true
        
        titleLabel?.font = UIFont.systemFont(ofSize: 18, weight: .semibold)
        
        setBackgroundImage(UIImage.init(color: UIColor.lightGray), for: .normal)
        setBackgroundImage(UIImage.init(color: UIColor.gray), for: .disabled)
        
    }

}
